/**
 * File   : ThreadException.cc
 * Time   : 2014-12-15 10:46
 * Author : KashingLee
 * Ref    : mooon
 */
#include "ThreadException.h"
using std::cout;
using std::endl;

void ThreadException::ShowError () const {
  switch (errno_){
  case 0: cout << "Thread no error" << endl;
    break;
  case 1: cout << "Thread attr init error" << endl;
    break;
  case 2: cout << "Thread create error" << endl;
    break;
  case 3: cout << "Thread join error" << endl;
    break;
  default: cout << "Thread "<< errno_ << endl;
  }
}
